Skip to main content

ConstantArray

ConstantArray[c,n] generates a list of n copies of the element c.

ConstantArray[c,{n1,n2,…}] generates an n1n2… array of nested lists containing copies of the element c.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.